package br.com.wss;

import br.com.wss.recursos.CreateDataBase;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

public class AppDroid extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.home);
	}

	public void onClickCatalogoCursos(View view) {
		Intent intentTelaCampus = new Intent("br.com.TELACAMPUS");
		startActivity(intentTelaCampus);
	}

	public void onClickCleanDataBase(View view) {
		CreateDataBase dataBase = new CreateDataBase(this);
		dataBase.execute();
	}

	public void onClickSobre(View view) {
		Intent intent = new Intent(this, Sobre.class);
		startActivity(intent);
	}

	public void toast(String msg) {
		Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();
	}

	private void trace(String msg) {
		toast(msg);
	}
}